package top.sqdpt.third.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import top.sqdpt.third.enums.WeatherType;

import java.util.List;

@Data
@ConfigurationProperties(prefix = "aichat.third.weather")
public class WeatherProperties {

    private List<WeatherConfig> configs;

    @Data
    public static class WeatherConfig {
        private String key;

        private String forecastUrl;

        private String nowUrl;

        private String cityCodeUrl;

        private WeatherType type;
    }
}
